package com.league.blog.controller;

import com.league.blog.mapper.ArticleMapper;
import com.league.blog.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 黄豪琦
 * 日期:2020-04-16 11:12
 * 说明:
 */
@Controller
@Slf4j
@RequestMapping("/user")
public class UserController {

    private ArticleMapper articleMapper;


    private UserMapper userMapper;

    @RequestMapping("/oneself")
    public String oneself(){

        return "oneself";
    }

    @Autowired
    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }


    @Autowired
    public void setArticleMapper(ArticleMapper articleMapper) {
        this.articleMapper = articleMapper;
    }
}
